<?php
set_time_limit(0);ini_set('max_execution_time', 0);
/*$html_top = <<<eot
<table cellspacing="0" cellpadding="0" width="46%" style="border:solid #ccc 0.25pt;background-color:white;font-size:6.5pt;text-decoration:none;">
	<tbody>
eot;*/
$html_top = <<<eot
<table>
	<tbody>
eot;

function html_tr($tr = array(), $bg_check = null){
	$bg = "border:solid #ccc 0.25pt;";
	if(empty($tr)){
		echo "组织html时,传来的数组为空<Br>";
		return null;
	}
	if(empty($tr["first"]))
		$tr["first"] = "";
	
	//将td加背景
	$bg_ou_guan = null;
	if($tr["liangShai"] == "欧洲联赛")
		$bg_ou_guan = "background:#ccffcc;";
	else if($tr["liangShai"] == "欧冠")
		$bg_ou_guan = "background:#ffcc99;";
		
	$html_tr = <<<eot
		<tr>
			<td width="415" style="{$bg}">
				<p>{$bg_check}{$tr["first"]}</p>
			</td>
			<td width="115" style="{$bg}{$bg_ou_guan}">
				<p>{$tr["one"]}</p>
			</td>
			<td width="15" style="{$bg}{$bg_ou_guan}">
				<p align="center" style="text-align:center;">{$tr["bifen"]}</p>
			</td>
			<td width="115" style="{$bg}{$bg_ou_guan}">
				<p>{$tr["two"]}</p>
			</td>
		</tr>
eot;
	return $html_tr;
}

$html_bottom = <<<eot
	</tbody>
</table>
eot;


//------------------------------------------------------------------------------------------下面的不用----------------------------------------------------------------------------------------------------

$html_tr2 = <<<eot
		<tr>
			<td width="174" style="border:dotted windowtext 1.0pt;">
				<p>
					<span style="font-size:6.5pt;font-family:&quot;color:#333333;"><a href="http://www.okooo.com/MatchInfo/MatchReportLastMatch.php?MatchID=189317" target="_blank"><span style="color:#182A6C;text-decoration:none;">12-05-03</span></a></span> 
				</p>
			</td>
			<td width="174" style="border:dotted windowtext 1.0pt;">
				<p>
					<span style="font-size:6.5pt;font-family:&quot;color:#333333;"><a href="http://www.okooo.com/Team/TeamInfoIndex.php?GroupID=2779&amp;TeamID=13" target="_blank"><b><span style="font-family:����;color:red;text-decoration:none;"><span>��������</span></span></b><span style="color:black;text-decoration:none;"><span> </span></span></a></span> 
				</p>
			</td>
			<td width="23" style="border:dotted windowtext 1.0pt;">
				<p align="center" style="text-align:center;">
					<span style="font-size:6.5pt;font-family:&quot;color:#333333;"><a href="http://www.okooo.com/MatchInfo/MatchGoalsShow.php?MatchID=189317" target="_blank"><span style="color:#182A6C;text-decoration:none;">4-0</span></a></span> 
				</p>
			</td>
			<td width="174" style="border:dotted windowtext 1.0pt;">
				<p>
					<span style="font-size:6.5pt;font-family:&quot;color:#333333;"><a href="http://www.okooo.com/Team/TeamInfoIndex.php?GroupID=2779&amp;TeamID=23" target="_blank"><span style="font-family:����;color:black;text-decoration:none;"><span>��������</span></span></a></span> 
				</p>
			</td>
		</tr>
eot;
